package com.sun.entity;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author SunRui
 * @description TODO
 * @date 2024/9/25 8:36
 */
public class Book implements Serializable {
    @Serial
    private static final long serialVersionUID = -5558585572282300750L;
    private int id;
    private String book_name;
    private String author;
    private String publicationdate;
    private float price;
    private int category_id;


    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", book_name='" + book_name + '\'' +
                ", author='" + author + '\'' +
                ", publicationdate='" + publicationdate + '\'' +
                ", price=" + price +
                ", category_id=" + category_id +
                '}';
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBook_name() {
        return book_name;
    }

    public void setBook_name(String book_name) {
        this.book_name = book_name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublicationdate() {
        return publicationdate;
    }

    public void setPublicationdate(String publicationdate) {
        this.publicationdate = publicationdate;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public int getCategory_id() {
        return category_id;
    }

    public void setCategory_id(int category_id) {
        this.category_id = category_id;
    }
}
